﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="DoRegist.aspx.cs" Inherits="AiRiZu.User.DoRegist" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<title>
	Welcome爱日租—全球最时尚、最具先锋概念的房屋日租、短租服务网站！
</title>
<meta content="爱日租,日租,短租,租房,家庭公寓,自助公寓,家庭旅馆,旅游" name="keywords"/>
<meta content="爱日租是国内首家专注房屋短期租赁的信息发布和在线交易的网站，为房主和租户搭建起最值得信赖的沟通和交易平台" name="description"/>

<link rel="stylesheet" href="css/css.css" />
<link rel="stylesheet" href="css/pixie.css" />
<link rel="stylesheet" href="css/common.css" />
<link rel="stylesheet" href="css/dashboard.css" />

<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript" src="js/jquery-ui.min.js"></script>
<script type="text/javascript" src="js/application6.js"></script>
<script type="text/javascript" src="js/home.js"></script>
<script type="text/javascript" src="js/translate.js"></script>
<script type="text/javascript" src="js/s_code.js?vid=1"></script>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta name="layout" content="main"/>


	<script type="text/javascript"
		src="http://static.connect.renren.com/js/v1.0/FeatureLoader.jsp"></script>

<script type="text/javascript">
//	function toQzoneLogin(){
//		var A=window.open("/openQq/login","TencentLogin", "width=450,height=320,menubar=0,scrollbars=1,resizable=1,status=1,titlebar=0,toolbar=0,location=1");
//	}
//	XN_RequireFeatures(["EXNML"], function()
//		    {
//		      XN.Main.init("778b70c51f284fd2a8f46cfa18e830a6", "/airizu/xd_receiver.html");
//		    });
//	$(function(){
//		$('#serviceTerms').change(function(){
//			if(!this.checked){
//				
//			}
//			//alert(this.checked)
//	    })
    //	})
</script>



<script type="text/javascript">

    $(document).ready(function() {
        initUserInfo();
    });

    function initUserInfo() {

        document.getElementById('firstNameRegist').value = document.getElementById('firstNameR').value;
        document.getElementById('lastNameRegist').value = document.getElementById('lastNameR').value;
        document.getElementById('emailRegist').value = document.getElementById('emailR').value;
        document.getElementById('phoneNumberRegist').value = document.getElementById('phoneNumberR').value;
    }

function addEventHandler(target, type, func) { 
    if (target.addEventListener) 
        target.addEventListener(type, func, false); 
    else if (target.attachEvent) 
        target.attachEvent("on" + type, func); 
    else target["on" + type] = func; 
} 
addEventHandler(document, 'scroll', function() {
	document.getElementById('list_loading').style.top = $('body').scrollTop() + 'px';
});

//function shiftLanguage(lang, country) {
//	$.ajax({
//		   type: "POST",
//		   url: "/ajax/versionInternationalize",
//		   data: 'lang=' + lang + '&country=' + country,
//		   success: function(msg){
//		   	   if(msg == 'success') {
//		   	   	   window.location.reload(true);
//		   	   }
//		   }
//		 });
//}

//$(document).bind('click',function(event){  
//    var url = event.target.href;
//    if(event.target.parentNode.href) {
//		url = event.target.parentNode.href;
//    }
//    if(url && url.indexOf('http://') == 0) {
//    	if(url.indexOf("?") != -1 && (url.indexOf("/city") != -1 || url.indexOf("/list") != -1 || url.indexOf("/show") != -1)) {
//	    	post_to_url(url);
//	        event.preventDefault();  
//	        event.stopPropagation();
//    	}  
//    }  
//      
//},true);

function post_to_url(url) {
	var flag = false; // 目录到/room/show页面时是弹出新窗口，flag = false 不弹出，true是弹出
	if(url.indexOf("/room/show") != -1 && url.indexOf("?src=list") != -1){
        flag = true;
    }

    var form = document.createElement("form");
    var baseUrl = url.substring(0, url.indexOf("?"));
    var params = url.substring(url.indexOf("?") + 1, url.length);
    params = decodeURIComponent(params);
    params = params.replace("+", " ");
    var s = params.split("&");
    form.setAttribute("method", "post");
    form.setAttribute("action", baseUrl);
    for(var i = 0; i < s.length; i ++) {
        var hiddenField = document.createElement("input");
        hiddenField.setAttribute("type", "hidden");
        hiddenField.setAttribute("name", s[i].split("=")[0].replace('locationSearch', 'location'));
        hiddenField.setAttribute("value", s[i].split("=")[1]);
        form.appendChild(hiddenField);
    }
    $('body').append(form);
    if(flag){
        form.target="_blank"; // /room/show 新窗口弹出
    }
    
    form.submit();
}
</script>

<!--google analytics-->
<script type="text/javascript">

  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-22185191-1']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();

</script>

</head>
<body>
<form id="Form1" runat="server" >
	<div name="waitingDiv" id="waitingDiv" style="display: none;">
		<div id="list_loading" name="list_loading">
			<div id="list_loading_wrapper" class="rounded_more">
				<img src="/images/home_spinner.gif"
					style="display: block; float: left; padding: 0 12px 0 0;" />页面载入中...
			</div>
		</div>
	</div></div>
	<div class="header">
		<a class="logo" title="爱日租" href="/;jsessionid=0AC6BFE4236F430A7DCB1E4CA1E877C5"></a>
	  <div class="top_bar">
		<ul class="nav">
			
	            <li><a href="/user/login">登录</a></li>
	            <li><a href="/user/regist?inviteId=">注册</a></li>
	            <li><a href="#">新手上路</a></li>
	            <li><a href="#">帮助</a></li>
				
			
				<li style="display:none"><span class="ChoLanguage selected">
					<a href="#none" id="language_selector_cn" onClick="shiftLanguage('zh', 'CN')">简体中文</a></span></li>
	            <li style="display:none"><span class="EngLanguage">
	            	<a href="#none" id="language_selector_en" onClick="shiftLanguage('en', 'US')">English</a></span></li>
			
			
		</ul>
		<a href="../SendRoom.aspx" class="btn list_your_space">
			<span>发布房间</span>
		</a>
		</div>
		<p class="customer_hot_line"><span>400-696-6656</span><a href="/media">媒体报道</a></p>
	</div>
	
<!-- regist -->
<div class="main">
  <div class="wrap_top"></div>
  <div class="wrap_l_r l_r_left">
    <div class="wrap_right">
      <div class="l_r_title_big">
        <h2>注册</h2>
      </div>
      
      	
      	<input type="hidden" name="inviteId" id="inviteId" value=""/>
        <table>
          <tbody>
            <tr>
              <th><label for="">姓</label></th>
              <td><input id="firstNameR" name="firstName" type="text" value="<%=Session["firstNameRegist"] == null ? "" : Session["firstNameRegist"].ToString() %>" style="display:none"/>
                    <asp:TextBox runat="server" id="firstNameRegist" type="text" value="" class="input_a"></asp:TextBox>
              </td>
              <td class="t_tips"></td>
            </tr>
            <tr>
              <th><label for="">名</label></th>
              <td><input id="lastNameR" name="lastName" type="text" value="<%=Session["lastNameRegist"] == null ? "" : Session["lastNameRegist"].ToString() %>" style="display:none"/>
                    <asp:TextBox runat="server" id="lastNameRegist" type="text" value="" class="input_a"></asp:TextBox>
              </td>
              <td class="t_tips"></td>
            </tr>
            <tr>
              <th><label for="">电子邮件</label></th>
              <td><input id="emailR" value="<%=Session["emailRegist"] == null ? "" : Session["emailRegist"].ToString() %>" style="display:none"/>
					<asp:TextBox runat="server" id="emailRegist" name="email" type="text" 
							onblur="if(this.value == '') this.value = '请输入您的电子邮件';" 
							onkeypress="if(!(event.keyCode==64 || event.keyCode==45 || event.keyCode==46 || event.keyCode==95 
								|| (event.keyCode>=48 && event.keyCode<=57) 
								|| (event.keyCode>=65 && event.keyCode<=90) || (event.keyCode>=97 && event.keyCode<=122))) event.returnValue=false"
							onclick="if(this.value == '请输入您的电子邮件') this.value = '';"
							value="" class="input_a"></asp:TextBox>
							</td>
              <td class="t_tips"></td>
            </tr>
            <tr>
              <th><label for="">移动电话</label></th>
              <td><input id="phoneNumberR" value="<%=Session["phoneNumberRegist"] == null ? "" : Session["phoneNumberRegist"].ToString() %>" style="display:none"/>
					<asp:TextBox runat="server" id="phoneNumberRegist" name="phoneNumber" type="text" 
							onblur="if(this.value == '') this.value = '请输入您的移动电话';" 
							onkeypress="if(!(event.keyCode==43 || (event.keyCode>=48 && event.keyCode<=57))) event.returnValue=false" 
							onclick="if(this.value == '请输入您的移动电话') this.value = '';"
							value="" class="input_a"></asp:TextBox>
							</td>
              <td class="t_tips"></td>
            </tr>
            <tr>
              <th><label for="">密码</label></th>
              <td><asp:TextBox runat="server" TextMode="Password" id="passwordRegist" name="password" type="password" value="" class="input_a"/></td>
              <td class="t_tips">密码由6-20个英文字母<br/>
              或数字组成
              </td>
            </tr>
            <tr>
              <th>&nbsp;</th>
              <td colspan="2"><label for=""><input type="checkbox" id="serviceTerms" name="serviceTerms"/>我已阅读并同意爱日租<a href="/terms" target="_blank">服务条款</a></label></td>
            </tr>
      服务条款</a></label></td>
            </tr>
            <tr>
              <th></th>
              <td>
              <asp:LinkButton id="RegistButton" class="btn blue" runat="server" onclick="RegistButton_Click" 
                    ><span>注册</span></asp:LinkButton>
              <%--<a href="#" class="btn green" onclick="if(document.getElementById('email').value == '请输入您的电子邮件') document.getElementById('email').value = '';if(document.getElementById('phoneNumber').value == '请输入您的移动电话') document.getElementById('phoneNumber').value = ''; document.forms[0].submit();"><span>注册</span></a>--%>
              </td>
              <td></td>
            </tr>
          </tbody>
          
          
          <tfoot>
            <tr>
              <th></th>
              <td><div class="big_tips">请选择同意服务条款，否则不能注册 
                </div></td>
              <td></td>
            </tr>
          </tfoot>
          
        </table>
      
    </div>
  </div>
  <div class="wrap_l_r l_r_right">
    <div class="wrap_right">
      <div class="l_r_title_big">
        <h2>登录</h2>
      </div>
      
      	<input type="hidden" name="source" value="regist" id="source" />
        <table>
          <caption>
          <span>普通登录</span>
          </caption>
          <tbody>
            <tr>
              <th><label for="">帐号</label></th>
              <td><asp:TextBox runat="server" id="emailLogin" name="email" type="text" value="电子邮件/移动电话" class="input_a" onblur="if(this.value == '电子邮件/移动电话') this.value = '';" onclick="if(this.value == '电子邮件/移动电话') this.value = '';"/></td>
            </tr>
            <tr>
              <th><label for="">密码</label></th>
              <td><asp:TextBox runat="server" TextMode="Password" id="passwordLogin" name="password" type="password"  value="" class="input_a"  onKeyUp="if(event.keyCode == 13) document.forms[1].submit();"/></td>
            </tr>
            <tr>
              <th></th>
              <td><input type="checkbox" name="rememberLoginStatus" id="rememberLoginStatus" class="checkbox_a"/>
                <label for="rememberLoginStatus">记住登录状态</label></td>
            </tr>
            <tr>
              <th></th>
              <td><asp:LinkButton id="LogButton" class="btn blue" runat="server" 
                    onclick="LogButton_Click"><span>登 录</span></asp:LinkButton>
            </tr>
          </tbody>
          
        </table>

      <table>
        <caption>
        <span>使用合作网站账号登录</span>
        </caption>
        <tbody>
          <tr>
            <td class="other_login">
           <a href="javascript:void(0);" onclick="toQzoneLogin()"><img src="../img/qq_login.png" width="120" height="35" /></a>
                      <a href="#"
				onclick="XN.Connect.requireSession(function(){window.location.href='/renRen/login'});return false;"><img src="../img/renren_login.png" width="120" height="35" /></a>
           <a href="/sinawb/login"><img src="../img/sina_login.png" width="120" height="35" /></a>
           <a href="/kaixin/login"><img src="../img/kaixin_login.png" width="120" height="35" /></a>
            </td>
          </tr>
        </tbody>
      </table>
    </div>
  </div>
  <div class="clear"></div>
  <div class="wrap_bottom"></div>
</div>


	<!-- footer -->
	
<div id="footer">
  <p class="TxtEn">&copy; Copyright 2011 <a href="#">airizu.com 爱日租 版权所有</a>&nbsp;&nbsp;京ICP证110553 号
	 <br/>
	 <br/><img src="images/alipay.gif" width="123" height="40">&nbsp;&nbsp;
    <img src="images/tenpay.gif" width="96" height="40">&nbsp;&nbsp;    <img src="images/315.gif" width="89" height="40">    <img src="images/bluelogoair.gif"/></p>
</div>
</form>
</body>

</html>
